package com.gxa.insurance.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Min
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Admin implements Serializable {
   @ApiModelProperty(name = "id",dataType = "int",value = "管理用户id")
   private Integer id;
   @ApiModelProperty(name = "username",dataType = "String",value = "管理用户名")
   private String username;
   @ApiModelProperty(name = "email",dataType = "String",value = "邮箱")
   private String email;
   @ApiModelProperty(name = "phone",dataType = "String",value = "电话")
   private String phone;
   @JsonIgnore
   @ApiModelProperty(name = "password",dataType = "String",value = "密码")
   private String password;
   @JsonIgnore
   @ApiModelProperty(name = "salt",dataType = "String",value = "盐值")
   private String salt;
   @ApiModelProperty(name = "is_enable",dataType = "boolean",value = "是否启用 true或者是false")
   private Boolean is_enable;
   @JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss",timezone = "GMT+8")
   @ApiModelProperty(name = "last_login_time",dataType = "Date",value = "上次登录的时间")
   private Date last_login_time;
   @ApiModelProperty(name = "role",value = "员工角色  超级管理员 - 1，admin -2  ，普通管理员 - 3",dataType = "query")
   private AdminRole role;
   @ApiModelProperty(name = "roleId",value = "角色id  超级管理员 - 1，admin -2  ，普通管理员 - 3",dataType = "query")
   private Integer roleId;
}
